<div class="layui-fluid">
    <div class="layui-card">
      <div class="layui-card-body">
        <form class="layui-form" action="<?=url('userlevelconfig/add');?>">

            <div class="layui-form-item">
              <label class="layui-form-label">标题</label>
              <div class="layui-input-block">
                <input type="text" name="title" value="" required lay-verify="required" placeholder="请输入标题" autocomplete="off" class="layui-input">
              </div>
            </div>
            <div class="layui-form-item">
              <label class="layui-form-label">等级</label>
              <div class="layui-input-block">
                  <select name="level">
                      <option value="">--请选择--</option>
                        <?php foreach(c('type.user_level') as $k => $v):?>
                            <option value="<?=$k?>"><?=$v?></option>
                        <?php endforeach;?>
                    </select>
              </div>
            </div>
            <div class="layui-form-item">
              <label class="layui-form-label">库存</label>
              <div class="layui-input-block">
                <input type="text" name="stock" value="" required lay-verify="required" placeholder="请输入库存" autocomplete="off" class="layui-input">
              </div>
            </div>
            <div class="layui-form-item">
              <label class="layui-form-label">金额</label>
              <div class="layui-input-block">
                <input type="text" name="money" value="" required lay-verify="required" placeholder="请输入金额" autocomplete="off" class="layui-input">
              </div>
            </div>
            <div class="layui-form-item">
              <label class="layui-form-label">赠送积分</label>
              <div class="layui-input-block">
                <input type="text" name="points" value="0" required lay-verify="required" placeholder="请输入赠送积分" autocomplete="off" class="layui-input">
              </div>
            </div>
            <div class="layui-form-item">
              <label class="layui-form-label">描述</label>
              <div class="layui-input-block">
                  <textarea style="height:100px;" placeholder="请输入描述" name="describe" class="layui-textarea"></textarea>
              </div>
            </div>
            <div class="layui-form-item">
              <label class="layui-form-label">说明</label>
              <div class="layui-input-block">
                  <textarea style="height:400px;" placeholder="请输入说明" name="content" class="layui-textarea"></textarea>
              </div>
            </div>
          <div class="layui-form-item">
            <div class="layui-input-block">
              <button class="layui-btn" lay-submit lay-filter="myform">立即提交</button>
              <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
          </div>
        </form>
      </div>
    </div>
</div>
<script>
layui.use(['form'], function(){
  var $ = layui.$
  ,form = layui.form;
  form.render();

  var ue = UE.getEditor('container');
});
</script>
